if (localStorage.getItem("name") != null) {
    userInfo("info", localStorage.getItem("name").toString());
};